package com.gxy.learn.design.model.behaviour.visitor;

import lombok.extern.slf4j.Slf4j;

/**
 * @description: 具体访问者角色
 * @author: gaoxueyong
 * @Date: 2022/11/8 22:15
 */
@Slf4j
public class Owner implements Person {
    /**
     * 喂食狗
     *
     * @param dog
     * @return void
     * @Author gaoxueyong
     * @Date 10:14 下午 2022/11/8
     * @Param [dog]
     */
    @Override
    public void feed(Dog dog) {
        log.info("主人喂食狗");

    }

    /**
     * 喂食猫
     *
     * @param cat
     * @return void
     * @Author gaoxueyong
     * @Date 10:15 下午 2022/11/8
     * @Param [cat]
     */
    @Override
    public void feed(Cat cat) {
        log.info("主人喂食猫");
    }
}
